package service

import (
	"context"
	configApi "mldong/api/config"
	"reflect"
)

type IConfigService interface {
	/**
	* 添加配置
	 */
	Save(ctx context.Context, req *configApi.SaveReq) (res bool, err error)
	/**
	* 修改配置
	 */
	Update(ctx context.Context, req *configApi.UpdateReq) (res bool, err error)
	/**
	* 删除配置
	 */
	Remove(ctx context.Context, ids []string) (res bool, err error)
	/**
	* 配置详情
	 */
	Detail(ctx context.Context, id string) (res configApi.ConfigVO, err error)
	/**
	* 配置分页查询
	 */
	Page(ctx context.Context, req *configApi.PageReq) (res configApi.ConfigPageVO, err error)
}

var ConfigServiceType = reflect.TypeOf((*IConfigService)(nil)).Elem()
